// 推荐歌单类型验证接口
export interface RecommendSongsType {
    id: number,
    name: string
    picUrl: string,
}

// 电台分类类型验证接口
export interface HotSongsCategoryListType {
    id: number,
    name: string,
}

// 热门话题类型验证接口
export interface HotTopicListType {
    actId: number,
    title: string,
    participateCount: number,
    sharePicUrl: string,
    text: Array<string>
}

// 排行榜歌曲类型验证接口
export interface RankSongListType {
    id: number,
    name: string,
}

// 排行榜歌曲详情类型验证接口
export interface RankSongsDetailsType {
    id: number,
    title: string | undefined,
    ar: Array<AlType>,
    al: { picUrl: string },
    name: string,
    url: string | null,
    selected: boolean
}

// 歌曲作者类型验证接口
interface AlType {
    name: string
}

// 歌曲url类型验证接口
export interface SongUrlType {
    url: string
}

// pinia中歌曲类型接口
export interface SongListType extends RankSongsDetailsType {
}

// pinia中state定义类型接口
export interface StateType {
    isShow: boolean,
    isPlay: boolean,
    songUrl: string,
    currentIndex: number,
    songList: Array<SongListType>,
    songLyric: Array<LyricType>,
    collectMusic: Array<SongListType>,
    collectMusicList:Array<collectSongListType>
}

// 收藏歌单类型接口 
 export interface collectSongListType {
    title:string,
    nickName:string,
    coverImgUrl:string,
    id:number,
    musicLength:number,
 }
// 歌词类型接口
interface LyricType {
    time: number,
    lyc: string,
}

// 视频分类类型接口

export interface VideoCategoryType {
    name: string,
    id: number,
}

// 视频详情类型接口
export interface VideoListType {
    data: VideoDateType
}

// 视频详情类型接口
export interface VideoDateType {
    vid: string,
    commentCount: number,
    description: string,
    title: string,
    praisedCount: number,
    url: string,
    coverUrl: string,
    creator: {
        nickname: string,
        avatarUrl: string,
    }
}

// 分享数据面板类型接口
export interface ShareDataType {
    name: string,
    icon: string
}

// 歌单数据类型接口
export interface CollectSongListType {
    playlist: {
        subscribed: boolean,
    }
}